<?php


require 'database.php';


$___f___=file_get_contents("../doub.txt");
$___f___=explode(PHP_EOL,$___f___);

$___pid___=file_get_contents("../pid.txt");
$___pid___=explode(PHP_EOL,$___pid___);
/************************************************
 * 挂载demo.json
 ************************************************/
$__demo__=file_get_contents("demo.json");
$__demo__=json_decode($__demo__,1);
$__demo__["pidend"]=count($___pid___)-1;
$__demo__["victorytop"]=0;
$__demo__["victorykui"]=0;
$__demo__["stopsum"]=0;
$__demo__["pid"]=0;
$__demo__["vk"]=0;

$__demo__=json_encode($__demo__,JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE);
file_put_contents("demo.json",$__demo__);


return json($___f___);

